package com.hrt.datasender.web.dataMaintain;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BcConfigStorageModel extends BaseModel {

    private static final long serialVersionUID = 1L;


    public static String tableName = "BC_CONFIG_STORAGE";


    public static IField id = new Field(BcConfigStorageModel.class,"ID",FieldType.String,true,true,false);

    public static IField siteCode = new Field(BcConfigStorageModel.class,"SITE_CODE",FieldType.String,false,true,false);

    public void setId(String value){
        setFieldValue(BcConfigStorageModel.id.getFieldName(), value);
    }

    public String getId(){
        Object value = getFieldValue(BcConfigStorageModel.id.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setSiteCode(String value){
        setFieldValue(BcConfigStorageModel.siteCode.getFieldName(), value);
    }

    public String getSiteCode(){
        Object value = getFieldValue(BcConfigStorageModel.siteCode.getFieldName());
        return getValueConver().converToString(value);
    }


    public String getTableName() {
        return tableName;
    }


    public boolean isNeedCache() {
        return false;
    }

}